import request from "@/apps/admin/units/request";

import {HttpResultData} from "@/types/project";


/**
 * 获取SEO规则
 */
export const getDefaultApi = (): Promise<HttpResultData<any>> => request(`/system-seo/default-rules`)

/**
 *  设置默认SEO规则
 */
export const setDefaultApi = (data: any): Promise<HttpResultData<any>> => request(`/system-seo/set-default`, data, 'POST')


/**
 * @param where
 * @returns {*}
 * 获取seo规则
 */
export const getSeoRulesApi = (where: any): Promise<HttpResultData<any>> => request(`/system-seo/list`, where)


/**
 * 编辑SEO规则
 * @param data
 */
export const updatedSeoRulesApi = (data: any): Promise<HttpResultData<any>> => request(`/system-seo/updated`, data, 'POST')